<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'editClient_main.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="css/left_tabmenu.css">
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-patch.css"/>
	<link rel="stylesheet" type="text/css" href="js/ext/resources/css/ext-all.css"/>
	<link rel="stylesheet" type="text/css" href="css/list_overview.css"/>
	<script type="text/javascript" src="js/showmenu.js"></script>
<style type="text/css">
#general{margin:auto;}
#general td{
font-size:12;
text-align:left;
}
	.button {
	 width:100px;
	height:30px;
	line-height:12px;
	font-size:12px;
	color:#fff;	
	background:url("images/button/bg26.jpg") no-repeat left top;	
	padding-bottom:4px;
}
#operation{margin:auto;}
#operation td{
font-size:12;
text-align:left;
}
</style>
  </head>
  
  <body>
  <table width="100%" height="100%">
  <tr><td>
<table width="100%">
<tr><td><jsp:include page="../top.jsp" flush="true"></jsp:include></td></tr>
</table>
</td></tr>
<tr><td height="4"></td></tr>
<tr><td style="padding-left:5px;height:20px;text-align:left;">
<a href="#" style="text-decoration: none;">首页</a>&gt;&gt;客户管理&gt;&gt;${custType}&gt;&gt;总览
</td></tr>
<tr><td height="4"></td></tr>
<tr><td style="vertical-align:top;">
<table width="99%" style="border:#BCD2EE solid 1px;margin:auto;">
<tr>
<td width="16%" height="100%" style="vertical-align:top;border-right:2px #65aaef solid;">
<div id="nav">  
   <div class="title1" id="menu1" onclick="showmenu('1') ">→基本信息</div>
  <div id="list1" class="content" style="display:block">
       <ul>
<li><a href="view/customer/Customer_General.jsp">- 概况</a></li>
<li><a href="view/customer/Customer_Address.jsp">- 地址</a></li>
<li><a href="view/customer/Customer_Operation.jsp">- 经营情况</a></li>
<li><a href="view/customer/Customer_Management.jsp">- 管理层情况</a></li>
<li><a href="view/customer/Customer_Stockholder.jsp" >- 股东情况</a></li>
<li><a href="dispatch.do?type=Cust_Overview&custId=${custId}" style="color:blue;">- 总览</a></li> 
    </ul>
  </div> 
 <div class="title" id="menu2" onclick="showmenu('2')"><a href="view/customer/Customer_ReportList.jsp" style="text-decoration: none;color:#fff;">→财务信息</a></div>
<div class="title" id="menu3" onclick="showmenu('3')">→集团客户信息</div>
  <div id="list3" class="content" style="display:none">
    <ul>
<li><a href="#" title="">- 成员信息</a></li>
<li><a href="#" title="">- 集团信息</a></li>
    </ul>
  </div> 
  <div class="title" id="menu4" onclick="showmenu('4')">→银企合作信息</div>
  <div id="list4" class="content" style="display:none">
    <ul>
<li><a href="view/customer/Customer_Inner.jsp">- 我行存贷款信息</a></li>
<li><a href="view/customer/Customer_Outer.jsp">- 他行存贷款信息</a></li>
<li><a href="dispatch.do?type=Cust_Guarantee&custId=${custId}">- 担保信息</a></li>
<li><a href="view/customer/Customer_AssociateAccount.jsp">- 关联账户</a></li>
    </ul>
  </div> 
    <div class="title" id="menu5" onclick="showmenu('5')">→历史评级信息</div>  
    <div id="list5" class="content" style="display:none">
    <ul>
<li><a href="view/customer/CheckCustomer_OuterRating.jsp">- 外部评级</a></li>
<li><a href="view/customer/CheckCustomer_InnerRating.jsp">- 内部评级</a></li>
    </ul>
  </div> 
<div class="title" id="menu6" onclick="showmenu('6')"><a href="view/customer/Customer_Events.jsp" style="text-decoration: none;color:#fff;">→重大事项</a></div>  
</div>
</td>
<td width="84%" style="vertical-align:top;padding-left:5px;padding-right:5px;padding-bottom:10px;" id="right_frame">
<br/>
<table width="100%">
<tr>
<td width="50%" style="text-align: left;">
<img src="images/id-card.png" alt="" width="24" height="24"/>总览</td>
<td width="50%" style="text-align: right;">
<input type="button" class="button" value="返回客户列表" onClick="window.location.href='view/customer/CustomerList_Enterprise.jsp'"></td>
</tr>
</table>
<hr/>
<br/>
<table class="list_container special_table"  cellpadding="5" cellspacing="1" bgcolor="#99BBE8" id="general">
<tr class="x-panel-header">
<td colspan="4"><span class="list_name">概况</span>
<div class="edit_button" ><table  cellspacing="0" class="x-btn x-btn-noicon " style="width: 75px; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc" style="text-align:center"><input type="button" class="x-btn-text" value="编辑" onmouseover="highLight()" onmouseout="unHighLight()" onClick="window.location.href='view/customer/Customer_General.jsp'"></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div>
</td></tr>
<tr >
<td width="15%" class="item_name">客户号</td>
<td colspan="4" bgcolor="#ffffff" >&nbsp;<c:out value="${custInfo.custNo}"></c:out></td>
</tr>
<tr >
<td class="item_name">客户名称</td>
<td >&nbsp;<c:out value="${custInfo.custName}"></c:out></td>
<td class="item_name">客户简称</td>
<td >&nbsp;<c:out value="${custInfo.simpleName}"></c:out></td>
</tr>
<tr  >
<td class="item_name">客户名称（英文）</td>
<td  >&nbsp;<c:out value="${custInfo.englishName}"></c:out></td>
<td class="item_name">客户简称（英文）</td>
<td  >&nbsp;<c:out value="${custInfo.simpleEnName}"></c:out></td>
</tr>
<tr  >
<td class="item_name">营业执照号码</td>
<td  >&nbsp;<c:out value="${custInfo.organizationId}"></c:out></td>
<td class="item_name">组织机构代码</td>
<td  >&nbsp;<c:out value="${custInfo.busiLicenseId}"></c:out></td>
</tr>
<tr  >
<td class="item_name">所有制类别</td>
<td  >&nbsp;<c:out value="${DataDictionary['BelongType'][custInfo.belongType].itemName}"></c:out></td>
<td class="item_name">组织类别</td>
<td  >&nbsp;<c:out value="${DataDictionary['OrgType'][custInfo.orgType].itemName}"></c:out></td>
</tr>
<tr  >
<td class="item_name">成立时间</td>
<td  >&nbsp;<c:out value="${custInfo.establishDate}"></c:out></td>
<td class="item_name">财年截止日期</td>
<td  >&nbsp;<c:out value="${custInfo.closeDate}"></c:out></td>
</tr>
<tr  >
<td class="item_name">注册资本币种</td>
<td  ><c:out value="${DataDictionary['Currency'][custInfo.capitalCurrency].itemName}"></c:out></td>
<td class="item_name">注册资本</td>
<td  >&nbsp;<c:out value="${custInfo.registercapitalString}"></c:out></td>
</tr>
<tr  >
<td class="item_name">注册资本到位率</td>
<td  >&nbsp;<c:out value="${custInfo.receiveRate}"></c:out></td>
<td class="item_name">企业规模</td>
<td  >&nbsp;<c:out value="${DataDictionary['CustScope'][custInfo.custScope].itemName}"></c:out></td>
</tr>
<tr  >
<td class="item_name">客户状态</td>
<td  >&nbsp;<c:out value="${DataDictionary['CustStatus'][custInfo.custStatus].itemName}"></c:out></td>
<td class="item_name"></td>
<td  >&nbsp;</td>
</tr>
<tr  >
<td class="item_name">行业类别</td>
<td  >&nbsp;<c:out value="${DataDictionary['IndustryType'][custInfo.industryType].itemName}"></c:out></td>
<td class="item_name">&nbsp;</td>
<td  >&nbsp;</td>
</tr>
</table>
<br/><br/><br/>

<table class="list_container special_list"  cellpadding="5" cellspacing="1"  id="address">
<tr class="x-panel-header">
<td colspan="9"><span class="list_name">地址</span><div class="edit_button" ><table  cellspacing="0" class="x-btn x-btn-noicon " style="width: 75px; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc" style="text-align:center"><input type="button" class="x-btn-text" value="编辑" onmouseover="highLight()" onmouseout="unHighLight()" onClick="window.location.href='view/customer/Customer_Address.jsp'"></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></td>
</tr>

<tr class="list_subtitle" >
<td >地址类型</td>
<td>国家</td>
<td>省份</td>
<td>城市</td>
<td>街道地址</td>
<td>邮编</td>
<td>电话</td>
<td>传真</td>
<td>网址</td>
</tr>
<c:set var="index" value="0"></c:set>
<c:forEach var ="ca" items="${custAddressList}">
<c:choose>
<c:when test="${index % 2 == 0}">
	<tr class="list_item_1">
		<td><c:out value="${DataDictionary['AddressType'][ca.addressType].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['CountryCode'][ca.countryCode].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['RegionCode'][ca.provinceCode].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['RegionCode'][ca.cityCode].itemName}"></c:out></td>
		<td><c:out value="${ca.addressDesc}"></c:out></td>
		<td><c:out value="${ca.postCode}"></c:out></td>
		<td><c:out value="${ca.tel}"></c:out></td>
		<td><c:out value="${ca.fax}"></c:out></td>
		<td><c:out value="${ca.webSiteUrl}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:when>
<c:otherwise>
	<tr class="list_item_2">
		<td><c:out value="${DataDictionary['AddressType'][ca.addressType].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['CountryCode'][ca.countryCode].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['RegionCode'][ca.provinceCode].itemName}"></c:out></td>
		<td><c:out value="${DataDictionary['RegionCode'][ca.cityCode].itemName}"></c:out></td>
		<td><c:out value="${ca.addressDesc}"></c:out></td>
		<td><c:out value="${ca.postCode}"></c:out></td>
		<td><c:out value="${ca.tel}"></c:out></td>
		<td><c:out value="${ca.fax}"></c:out></td>
		<td><c:out value="${ca.webSiteUrl}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:otherwise>
</c:choose>


</c:forEach>
</table>



<br/><br/><br/>
<table class="list_container special_table"  cellpadding="5" cellspacing="1" bgcolor="#99BBE8" id="operation">
<tr class="x-panel-header">
<td colspan="9"><span class="list_name">经营状况</span><div class="edit_button" ><table  cellspacing="0" class="x-btn x-btn-noicon " style="width: 75px; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc" style="text-align:center"><input type="button" class="x-btn-text" value="编辑" onmouseover="highLight()" onmouseout="unHighLight()" onClick="window.location.href='view/customer/Customer_Operation.jsp'"></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></td>
</tr>
<tr bgcolor="#ffffff">
<td width="20%" class="item_name">主营业务</td>
<td width="30%" bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.busiScope}"></c:out></td>
<td width="20%" class="item_name">经营年限（年）</td>
<td width="30%" bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.operationYears}"></c:out></td>
</tr>
<tr bgcolor="#ffffff">
<td class="item_name">兼营业务</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.sidelineScope}"></c:out></td>
<td class="item_name">主营业务收入（元）</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.mainBusiIncomeString}"></c:out></td>
</tr>
<tr bgcolor="#ffffff">
<td class="item_name">资产总额（元）</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.assetSumString}"></c:out></td>
<td class="item_name">所有者权益（元）</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.ownersEquityString}"></c:out></td>
</tr>
<tr bgcolor="#ffffff">
<td class="item_name">负债总额（元）</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${custInfo.debtSumString}"></c:out></td>
<td class="item_name">是否存在关联交易方</td>
<td bgcolor="#ffffff">&nbsp;<c:out value="${DataDictionary['HasOrNot'][custInfo.relatedTransaction].itemName}"></c:out></td>
</tr>
<tr bgcolor="#ffffff">
<td class="item_name">《营业执照》主营业务</td>
<td bgcolor="#ffffff" colspan="4">&nbsp;<c:out value="${custInfo.licenceBusiScope}"></c:out></td>
</tr>
<tr bgcolor="#ffffff">
<td class="item_name">其他说明&nbsp;（主要供应商、主要客户、 
主要竞争对手以及市场份额等）</td>
<td bgcolor="#ffffff" colspan="4">&nbsp;<c:out value="${custInfo.otherDesc}"></c:out></td>
</tr>
</table>


<br/><br/><br/>
<table class="list_container special_list"  cellpadding="5" cellspacing="1"  id="management">
<tr class="x-panel-header">
<td colspan="13"><span class="list_name">管理层情况</span><div class="edit_button" ><table  cellspacing="0" class="x-btn x-btn-noicon " style="width: 75px; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc" style="text-align:center"><input type="button" class="x-btn-text" value="编辑" onmouseover="highLight()" onmouseout="unHighLight()" onClick="window.location.href='view/customer/Customer_Management.jsp'"></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></td>
</tr>
<tr class="list_subtitle">
<td>称谓</td>
<td>姓名</td>
<td>性别</td>
<td>电话</td>
<td>手机</td>
<td>传真</td>
<td>邮件</td>
<td>证件类型</td>
<td>证件号码</td>
<td>国籍</td>
<td>学历</td>
<td>生日</td>
<td>从业年限(年)</td>
</tr>
<c:set var="index" value="0"></c:set>
<c:forEach var ="cm" items="${custManagerList}">
<c:choose>
<c:when test="${index % 2 == 0}">
	<tr class="list_item_1">
	<td><c:out value="${cm.managerName}"></c:out></td>
	<td><c:out value="${DataDictionary['Position'][cm.jobtitle].itemName}"></c:out></td>
	<td><c:out value="${DataDictionary['SexType'][cm.sexType].itemName}"></c:out></td>
	<td><c:out value="${cm.telNo}"></c:out></td>
	<td><c:out value="${cm.cellNo}"></c:out></td>
	<td><c:out value="${cm.faxNo}"></c:out></td>
	<td><c:out value="${cm.email}"></c:out></td>
	<td><c:out value="${DataDictionary['CertType'][cm.idtype].itemName}"></c:out></td>
	<td><c:out value="${cm.managerId}"></c:out></td>
	<td><c:out value="${Country[cm.nationality]}"></c:out></td>
	<td><c:out value="${DataDictionary['Education'][cm.education].itemName}"></c:out></td>
	<td><c:out value="${cm.birthday}"></c:out></td>
	<td><c:out value="${cm.careerWorkTime}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:when>
<c:otherwise>

	<tr class="list_item_2">
	<td><c:out value="${cm.managerName}"></c:out></td>
	<td><c:out value="${DataDictionary['Position'][cm.jobtitle].itemName}"></c:out></td>
	<td><c:out value="${DataDictionary['SexType'][cm.sexType].itemName}"></c:out></td>
	<td><c:out value="${cm.telNo}"></c:out></td>
	<td><c:out value="${cm.cellNo}"></c:out></td>
	<td><c:out value="${cm.faxNo}"></c:out></td>
	<td><c:out value="${cm.email}"></c:out></td>
	<td><c:out value="${DataDictionary['CertType'][cm.idtype].itemName}"></c:out></td>
	<td><c:out value="${cm.managerId}"></c:out></td>
	<td><c:out value="${Country[cm.nationality]}"></c:out></td>
	<td><c:out value="${DataDictionary['Education'][cm.education].itemName}"></c:out></td>
	<td><c:out value="${cm.birthday}"></c:out></td>
	<td><c:out value="${cm.workStart}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:otherwise>
</c:choose>
</c:forEach>
</table>

<br/><br/><br/>
<table class="list_container special_list"  cellpadding="5" cellspacing="1"  id="stockholder">
<tr class="x-panel-header">
<td colspan="8"><span class="list_name">股东情况</span><div class="edit_button" ><table  cellspacing="0" class="x-btn x-btn-noicon " style="width: 75px; "><tbody class="x-btn-small x-btn-icon-small-left"><tr><td class="x-btn-tl"><i>&nbsp;</i></td><td class="x-btn-tc"></td><td class="x-btn-tr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-ml"><i>&nbsp;</i></td><td class="x-btn-mc" style="text-align:center"><input type="button" class="x-btn-text" value="编辑" onmouseover="highLight()" onmouseout="unHighLight()" onClick="window.location.href='view/customer/Customer_Stockholder.jsp'"></td><td class="x-btn-mr"><i>&nbsp;</i></td></tr><tr><td class="x-btn-bl"><i>&nbsp;</i></td><td class="x-btn-bc"></td><td class="x-btn-br"><i>&nbsp;</i></td></tr></tbody></table></div></td>
</tr>
<tr class="list_subtitle">
<td>股东类型</td>
<td>代码</td>
<td>股东名称</td>
<td>出资方式</td>
<td>出资币种</td>
<td>出资占比(%)</td>
<td>出资金额(元)</td>
<td>出资日期</td>
</tr>
<c:set var="index" value="0"></c:set>
<c:forEach var ="cm" items="${custStockholderList}">
<c:choose>
<c:when test="${index % 2 == 0}">
	<tr class="list_item_1">
	<td><c:out value="${DataDictionary['StockholderType'][cm.stockholderType].itemName}"></c:out></td>
	<td><c:out value="${cm.stockholderId}"></c:out></td>
	<td><c:out value="${cm.stockholderName}"></c:out></td>
	<td><c:out value="${DataDictionary['HoldType'][cm.holdType].itemName}"></c:out></td>
	<td><c:out value="${DataDictionary['Currency'][cm.currency].itemName}"></c:out></td>
	<td><c:out value="${cm.percent}"></c:out></td>
	<td><c:out value="${cm.amountString}"></c:out></td>
	<td><c:out value="${cm.date}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:when>
<c:otherwise>

	<tr class="list_item_2">
	<td><c:out value="${DataDictionary['StockholderType'][cm.stockholderType].itemName}"></c:out></td>
	<td><c:out value="${cm.stockholderId}"></c:out></td>
	<td><c:out value="${cm.stockholderName}"></c:out></td>
	<td><c:out value="${DataDictionary['HoldType'][cm.holdType].itemName}"></c:out></td>
	<td><c:out value="${DataDictionary['Currency'][cm.currency].itemName}"></c:out></td>
	<td><c:out value="${cm.percent}"></c:out></td>
	<td><c:out value="${cm.amountString}"></c:out></td>
	<td><c:out value="${cm.date}"></c:out></td>
	</tr>
	<c:set var="index" value="${index+1}"></c:set>
</c:otherwise>
</c:choose>
</c:forEach>
</table>


<br/><br/><br/>
</td>
</tr>
</table>
</td></tr>
<tr><td style="vertical-align:bottom;" >
<table width="100%">
<tr><td><jsp:include page="../bottom.jsp"></jsp:include></td></tr>
</table>
</td></tr>
</table>
  </body>
</html>
